package com.zhiyou100.taxi.service;

import com.github.pagehelper.PageInfo;
import com.zhiyou100.taxi.entity.User;

import java.util.HashSet;
import java.util.List;

/**
 * @author zhaokuii11@163.com
 * @create 2021-11-23 19:09
 * @Description
 */
public interface UserService {
    //登陆判断
    User getUserByNameAndPwd(User user);

    //用户分页
    PageInfo<User> getPage(Integer pageNum);

    //获取所有用户
    List<User> getAll();

    //插入用户
    int insert(User user);

    //获取自增主键
    String getPrimaryKey();

    //根据主键更新
    int updateByPrimaryKey(User user);

    //根据主键过去 用户
    User getOneByPrimaryKey(String userId);

    //根据主键删除 一个
    int deleteByPrimaryKey(String userId);

    //根据主键删除多个
    int deleteByPrimaryKeys(HashSet<String> set);
}
